home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7185 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Big and little endians
  5. Date: 17 Feb 96 21:09:05 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.824591345@rscernix>
  8. References: <4fuuqq$fpp@due.unit.no> <4g2j9g$ir2@spanky.pls.ov.com>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <4g2j9g$ir2@spanky.pls.ov.com> glenn@ov.com (Fletcher.Glenn@ov.com) writes:
  13.  
  14. >As it applies to computers, the terms refer to the ordering of bytes
  15. >in a computer word.  Dec and Intel use the "Big-Endian" order, and
  16. >Motorola and SPARC use the "Little-Endian" order.
  17.  
  18. It's exactly the other way 'round.  DEC and Intel are the biggest
  19. supporters of the little-endian "philosophy". 
  20.  
  21. >The "Little-Endian" order places the lowest addressed byte in the high
  22. >end of the word, and then next higher addressed byte to the next lower
  23. >position.  Thus if you examine a string in memory, you will see the
  24. >bytes in the same order as they would appear in a word.
  25.  
  26. A fairly accurate description of the big-endian order :-)
  27.  
  28. Dan
  29. --
  30. Dan Pop
  31. CERN, CN Division
  32. Email: danpop@mail.cern.ch 
  33. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  34.